﻿using System;
using TDDLab.Repositories;

namespace TDDLab.DbTester
{
    class Program
    {
        static void Main(string[] args)
        {
            var repository = new MovieRepository();

            try
            {
                var movies = repository.GetAll();

                foreach (var mymovie in movies)
                    Console.WriteLine(mymovie.Title);
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message);
            }
        }
    }
}
